<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AttachSettlementMarkAndStatusToChannelsAndCreateChannelMarks extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('channels', function (Blueprint $table) {
            $table->tinyInteger('settlement_status');
            $table->text('settlement_mark');
        });

        Schema::create('channel_marks',function(Blueprint $table){
            $table->increments('id');
            $table->timestamp('created_at');
            $table->string('content',512);
            $table->integer('user_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('channels', function (Blueprint $table) {
            //
        });
    }
}
